﻿namespace Regent.Boo.Demo

import System
import System.Windows.Forms

class MainForm(Form):
	pass

class Demo(Regent.Component):
	protected override def OnAcquire():
		Application.EnableVisualStyles()
		Application.SetCompatibleTextRenderingDefault(false)
		
	protected override def OnUpdate():
		Application.Run(MainForm())

[STAThread]
public def Main(argv as (string)) as void:
	d = Demo()
	d.Init()
	d.Update()
	d.Release()
